\hypertarget{classDB}{\section{D\-B类 参考}
\label{classDB}\index{D\-B@{D\-B}}
}
类 D\-B 继承关系图\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classDB}
\end{center}
\end{figure}
\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classDB_a87e38c19bba81f11b924f90c66da1580}{\-\_\-\-\_\-construct} (\$config)
\item 
\hyperlink{classDB_a39ef9b95ebe1b9b68ac283eeea4c81a7}{connect} ()
\item 
\hyperlink{classDB_acd6ab4b3dd52383693b0e6cdb57ffe4c}{query} (\$sql)
\item 
\hyperlink{classDB_ad8bc5b35c617401569975e4e8c6a7fa7}{execute} (\$sql)
\item 
\hyperlink{classDB_a3e77e76fd0a03352cef29d4e7307302e}{insert\-\_\-id} ()
\end{DoxyCompactItemize}
\subsection*{Public 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classDB_abac8b204ab63abcf1c60b1d82fb410b4}{{\bfseries \$prefix} = ''}\label{classDB_abac8b204ab63abcf1c60b1d82fb410b4}

\item 
\hypertarget{classDB_aa4a347a6234760e7c29c5b01b2f70707}{{\bfseries \$table\-\_\-name} =''}\label{classDB_aa4a347a6234760e7c29c5b01b2f70707}

\end{DoxyCompactItemize}
\subsection*{Protected 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classDB_a8f1b42482889d24462c21da37724caa1}{error\-\_\-msg} (\$message='', \$sql='')
\end{DoxyCompactItemize}
\subsection*{Protected 属性}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classDB_a1df8074e4455e10d921cf27b4d610c4a}{{\bfseries \$dbname} =''}\label{classDB_a1df8074e4455e10d921cf27b4d610c4a}

\item 
\hypertarget{classDB_a79a077beb434fc3e44334f161bae070e}{{\bfseries \$last\-\_\-sql} =''}\label{classDB_a79a077beb434fc3e44334f161bae070e}

\item 
\hypertarget{classDB_adb4ac7c2d1cd7d604544ea9fe2b4bde2}{{\bfseries \$dbhost} = ''}\label{classDB_adb4ac7c2d1cd7d604544ea9fe2b4bde2}

\item 
\hypertarget{classDB_a30827030d00a364a4b74c927b4255a9c}{{\bfseries \$dbuser} = ''}\label{classDB_a30827030d00a364a4b74c927b4255a9c}

\item 
\hypertarget{classDB_a73f2a6d060aaa8a3021a4d4761c14fa7}{{\bfseries \$dbpsw} = ''}\label{classDB_a73f2a6d060aaa8a3021a4d4761c14fa7}

\item 
\hypertarget{classDB_aa20e89c27f8b441de76b3b3c406bb572}{{\bfseries \$charset} = 'utf8'}\label{classDB_aa20e89c27f8b441de76b3b3c406bb572}

\item 
\hypertarget{classDB_ae09312de84c51599dab58305edd1579b}{{\bfseries \$pconnect} = 0}\label{classDB_ae09312de84c51599dab58305edd1579b}

\end{DoxyCompactItemize}


\subsection{详细描述}
mysql数据库操作类 \begin{DoxyAuthor}{作者}
七觞酒  \href{mailto:739800600@qq.com}{\tt 739800600@qq.\-com} 
\end{DoxyAuthor}
\begin{DoxyDate}{日期}
2013-\/1-\/19 
\end{DoxyDate}


\subsection{构造及析构函数说明}
\hypertarget{classDB_a87e38c19bba81f11b924f90c66da1580}{\index{D\-B@{D\-B}!\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}}
\index{\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}!DB@{D\-B}}
\subsubsection[{\-\_\-\-\_\-construct}]{\setlength{\rightskip}{0pt plus 5cm}D\-B\-::\-\_\-\-\_\-construct (
\begin{DoxyParamCaption}
\item[{}]{\$config}
\end{DoxyParamCaption}
)}}\label{classDB_a87e38c19bba81f11b924f90c66da1580}
构造函数 连接数据可 

\subsection{成员函数说明}
\hypertarget{classDB_a39ef9b95ebe1b9b68ac283eeea4c81a7}{\index{D\-B@{D\-B}!connect@{connect}}
\index{connect@{connect}!DB@{D\-B}}
\subsubsection[{connect}]{\setlength{\rightskip}{0pt plus 5cm}D\-B\-::connect (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [abstract]}}}\label{classDB_a39ef9b95ebe1b9b68ac283eeea4c81a7}
数据库连接 \hypertarget{classDB_a8f1b42482889d24462c21da37724caa1}{\index{D\-B@{D\-B}!error\-\_\-msg@{error\-\_\-msg}}
\index{error\-\_\-msg@{error\-\_\-msg}!DB@{D\-B}}
\subsubsection[{error\-\_\-msg}]{\setlength{\rightskip}{0pt plus 5cm}D\-B\-::error\-\_\-msg (
\begin{DoxyParamCaption}
\item[{}]{\$message = {\ttfamily ''}, }
\item[{}]{\$sql = {\ttfamily ''}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [protected]}}}\label{classDB_a8f1b42482889d24462c21da37724caa1}
输出错误提示信息 \hypertarget{classDB_ad8bc5b35c617401569975e4e8c6a7fa7}{\index{D\-B@{D\-B}!execute@{execute}}
\index{execute@{execute}!DB@{D\-B}}
\subsubsection[{execute}]{\setlength{\rightskip}{0pt plus 5cm}D\-B\-::execute (
\begin{DoxyParamCaption}
\item[{}]{\$sql}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [abstract]}}}\label{classDB_ad8bc5b35c617401569975e4e8c6a7fa7}
执行mysql instert update 语句 并返回影响行数 \hypertarget{classDB_a3e77e76fd0a03352cef29d4e7307302e}{\index{D\-B@{D\-B}!insert\-\_\-id@{insert\-\_\-id}}
\index{insert\-\_\-id@{insert\-\_\-id}!DB@{D\-B}}
\subsubsection[{insert\-\_\-id}]{\setlength{\rightskip}{0pt plus 5cm}D\-B\-::insert\-\_\-id (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [abstract]}}}\label{classDB_a3e77e76fd0a03352cef29d4e7307302e}
获取最后一次添加数据的主键号 \hypertarget{classDB_acd6ab4b3dd52383693b0e6cdb57ffe4c}{\index{D\-B@{D\-B}!query@{query}}
\index{query@{query}!DB@{D\-B}}
\subsubsection[{query}]{\setlength{\rightskip}{0pt plus 5cm}D\-B\-::query (
\begin{DoxyParamCaption}
\item[{}]{\$sql}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [abstract]}}}\label{classDB_acd6ab4b3dd52383693b0e6cdb57ffe4c}
执行基本的 mysql查询 并返回结果集 

该类的文档由以下文件生成\-:\begin{DoxyCompactItemize}
\item 
templi/\-Model/D\-B.\-class.\-php\end{DoxyCompactItemize}
